import request from './handler/request';
//API列表
export const API = {
	Login: `/login.do`, // 接口范例
	Register: `/users/register.do`,
	GetInfo:`/getInfo.do`,
	ShowWallet:`/users/showWallet.do`,
	UserInfo:`/users/publiclist.do`,
	PayMoney:`/users/pay.do`,
	ModifyPassword:`/modifyPassword.do`
};

//接口列表
export function Login(params) {
	return request.post({
		url: API.Login,
		params,
	});
}

export function Register(params) {
	return request.post({
		url: API.Register,
		params,
	});
}

export function GetInfo(params) {
	return request.get({
		url: API.GetInfo,
		params,
	});
}
export function ShowWallet(params) {
	return request.get({
		url: API.ShowWallet,
		params,
	});
}

export function UserInfo(params) {
	return request.get({
		url: API.UserInfo,
		params,
	});
}

export function PayMoney(params) {
	return request.get({
		url: API.PayMoney,
		params,
	});
}
export function ModifyPassword(params) {
	return request.post({
		url: API.ModifyPassword,
		params,
	});
}